<template>
  <div class="table-box">
    <!-- <div class="table-search">
      <div class="btn-box">
        <el-button type="primary" @click="onQuery">查询</el-button>

        <el-button type="primary" plain @click="onExport">导出</el-button>
      </div>
    </div> -->
    <div class="card content-box">
      <div class="table">
        <el-table :data="tableData" border v-loading="loading">
          <el-table-column
            prop="id_name"
            label="app页面内部名字"
            align="center"
          />
          <el-table-column prop="page_name" label="名字描述" align="center" />
        </el-table>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";

import { bannerPageListApi } from "@/api/slotsgame/game/game";

const loading = ref(false);
const tableData = ref([]);

// 参数
const param = () => {
  return {};
};

// 获取表格数据
const getTbaleData = async () => {
  loading.value = true;

  try {
    const res = await bannerPageListApi(param());
    loading.value = false;
    tableData.value = res.data;
  } catch (error) {
    loading.value = false;
  }
};

onMounted(() => {
  getTbaleData();
});
</script>
